<template>
  <div>
    <button @click="comName = 'UserAccount'">显示 UserAccount</button>
    <button @click="comName = 'UserInfo'">显示 UserInfo</button>
    <component :is="comName" />
  </div>
</template>

<script>
import UserAccount from './components/UserAccount.vue';
import UserInfo from './components/UserInfo.vue';
export default {
  components: { UserAccount, UserInfo },
  name: 'VueDemoApp',

  data() {
    return {
      comName:'UserAccount'
    };
  },

  mounted() {
    
  },

  methods: {
    
  },
};
</script>

<style lang="scss" scoped>
</style>